package com.example.demo.mapper;


import com.example.demo.dao.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface UserInfoMapper extends JpaRepository<User, Integer>{

    /**
     * 注册 查询
     * @param username
     * @param password
     * @return
     */
    User findByUsernameAndPassword(String username, String password);

    User findByUsername(String username);

}
